Skip to content

Conversation

@davemgreen
Copy link
Collaborator

These test change and need updating every time a new instruction is added, including generic G_ global isel instructions. The opcodes of all instructions change force a manual update of the file, which makes it very high cost for what it is testing.

I have rewritten it to use regexes for the triplets.mir test and just test a couple of opcodes in the entities.mir file.

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 186349 tests passed
  • 4855 tests skipped

Copy link
Contributor

@svkeerthy svkeerthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. We kept it this way to track any changes in the IR. We now plan to setup buildbot to do this. Current changes look good to me.

These test change and need updating every time a new instruction is added,
including generic G_ global isel instructions. The opcodes of all instructions
change force a manual update of the file, which makes it very high cost for
what it is testing.

I have rewritten it to use regexes for the triplets.mir test and just test a
couple of opcodes in the entities.mir file.

Also change them from REQUIRES: x86_64-linux to REQUIRES:
x86-registered-target, as they should run fine on other targets providing that
the triple is used correctly. It passes successfully on an AArch64 box I tried
it on.
@davemgreen davemgreen enabled auto-merge (squash) November 21, 2025 07:58
@davemgreen davemgreen merged commit 8b7c495 into llvm:main Nov 21, 2025
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants